package com.dhcc.bpm.modules.sandbox.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dhcc.bpm.modules.sandbox.entity.SandboxCaseDict;
import com.dhcc.bpm.modules.sandbox.vo.SandboxCaseDictVO;
import com.dhcc.bpm.modules.sandbox.vo.TestDictTypeVO;

import java.util.List;

/**
 * @ClassName ISandboxCaseDictService
 * @Description 沙箱案例测试关联表 服务类
 * @Author sjm
 * @Date 2020/2/21 0021 15:16
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 **/
public interface ISandboxCaseDictService extends IService<SandboxCaseDict> {

	/**
	 * @Description 自定义分页
	 * @Author sjm
	 * @Date 9:58 2020/2/22 0022
	 * @param page
	 * @param sandboxCaseDict
	 * @return com.baomidou.mybatisplus.core.metadata.IPage<com.dhcc.bpm.modules.sandbox.vo.SandboxCaseDictVO>
	 **/
	IPage<SandboxCaseDictVO> selectSandboxCaseDictPage(IPage<SandboxCaseDictVO> page, SandboxCaseDictVO sandboxCaseDict);

	/**
	 * 根据实例id查询沙箱案例
	 * @Author sjm 
	 * @Date 17:54 2020/2/21 0021
	 * @param page
	 * @param testDictTypeVO
	 * @return com.baomidou.mybatisplus.core.metadata.IPage<com.dhcc.bpm.modules.sandbox.vo.TestDictTypeVO>
	 **/
	IPage<TestDictTypeVO> selectSandboxCaseByCaseId(IPage<TestDictTypeVO> page, TestDictTypeVO testDictTypeVO);

	/**
	 * 根据实例id查询集合
	 * @Author sjm 
	 * @Date 17:55 2020/2/21 0021
	 * @param page
	 * @param testDictTypeVO
	 * @return com.baomidou.mybatisplus.core.metadata.IPage<com.dhcc.bpm.modules.sandbox.vo.TestDictTypeVO>
	 **/
	IPage<TestDictTypeVO> selectByCaseId(IPage<TestDictTypeVO> page,TestDictTypeVO testDictTypeVO);

	/**
	 * 查询沙箱实例
	 * @Author sjm
	 * @Date 17:55 2020/2/21 0021
	 * @param caseId
	 * @return java.util.List<com.dhcc.bpm.modules.sandbox.vo.SandboxCaseDictVO>
	 **/
	List<SandboxCaseDictVO>  selectSandboxCase(Long caseId);

	/**
	 * 根据id查询沙箱实例
	 * @Author sjm
	 * @Date 17:55 2020/2/21 0021
	 * @param caseId
	 * @param testId
	 * @return com.dhcc.bpm.modules.sandbox.vo.SandboxCaseDictVO
	 **/
	SandboxCaseDictVO selectSandboxCaseById(Long caseId, Long testId);

	/**
	 * 批量删除
	 * @Author sjm
	 * @Date 17:55 2020/2/21 0021
	 * @param caseId
	 * @param ids
	 * @return int
	 **/
	int removeByIds(long caseId, String ids);
}
